<template>
  <div class="page profile">
    <h1>个人简历</h1>
    <p>用户id:{{ userId }}</p>
    <p>用户名称:{{ userName }}</p>
  </div>
</template>

<script setup>
console.log(history.state)
const userId = history.state.userId || '没有用户id'
const userName = history.state.userName || '没有用户姓名'
</script>

<style scoped>
.profile {
  text-align: center;
  color: #2196f3;
}
</style>
